package com.train.mgr.modules.system.dto.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.SpringSecurityCoreVersion;

import java.util.Date;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUser{
    private static final long serialVersionUID = SpringSecurityCoreVersion.SERIAL_VERSION_UID;

    private Long id;
    private String username;
    private String nickName;
    private String avatar;
    private String phone;
    private String email;
    private String userType;
    private Long  deptId;
    private String deptName;
    private Long customerId;
    private String memberName;
    private Date deadlineTime;
    private boolean enabled;

    private String accessToken;

    private Set<GrantedAuthority> authorities;

    private Set<String> roles;
    private Set<String> permissions;

}
